package com.tjh.spring5.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;


/**
 * Create by koala on 2021-02-16
 * day22：注入普通类型属性
 */

@Service
public class UserService3 {

    @Value(value = "abc")
    private String name;


    public void add() {
        System.out.println(name);
    }

}
